package com.atuigu.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * PaymentHystrixService  openFeign 远程调用接口的Fallback类(远程调用异常进行处理)
 * eg:若远程调用paymentInfo_OK 接口出现问题，进入当前类的paymentInfo_OK方法进行处理异常
 */
@Component
public class PaymentHystrixFallbackService  implements PaymentHystrixService{
    @Override
    public String paymentInfo_OK(Integer id) {
        return "-----PaymentFallbackService fall back-paymentInfo_OK ,o(╥﹏╥)o";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "-----PaymentFallbackService fall back-paymentInfo_TimeOut ,o(╥﹏╥)o";
    }
}
